<?php 
$CI =& get_instance();
$CI->load->library("admin/admin_header_lib");
$CI->admin_header_lib->display_header_element(array("script"=>array("jquery")));
$CI->admin_header_lib->display_header();

$CI->load->library('admin/admin_sidebar_lib');
$CI->admin_sidebar_lib->display_sidebar();

?>
<div class="admin_right">
<div class="height7"></div>
<h2 class="head02">Details</h2>
<div class="line6"></div>

<!--End  List-->
<?php if(!empty($artworks_detail)): ?>
<table width="100%" class="grid_tbl02">
<tr>
<td>Full Name : </td> <td><?php echo $artworks_detail['artwork_fullname'] ?></td></tr>
<td>Company : </td> <td><?php echo $artworks_detail['artwork_company'] ?></td></tr>
<tr><td>Telephone : </td><td><?php echo $artworks_detail['artwork_telephone'] ?></td></tr>
<tr><td>Email : </td><td><?php echo $artworks_detail['artwork_email'] ?></td></tr>
<tr><td>Job name : </td><td ><?php echo $artworks_detail['artwork_jobname'] ?></td></tr>
<tr><td>CE number : </td><td ><?php echo $artworks_detail['artwork_cenumber'] ?></td></tr>
<tr><td>Quantity : </td><td ><?php echo $artworks_detail['artwork_quantity'] ?></td></tr>
<tr><td>Deadline : </td><td ><?php echo $artworks_detail['artwork_deadline'] ?></td></tr>
<tr><td>Extra note : </td><td ><?php if($artworks_detail['artwork_extranote']!=''){echo nl2br($artworks_detail['artwork_extranote']);}else{echo "extra notes not specified!";}?></td></tr>
<tr>
    <td>Uploaded Artworks : </td>
    <td>
    <table>
    <tr>
    <td>
    <?php
    if(!empty($uploads_detail))
    {
        foreach($uploads_detail as $key=>$val)
        {
            $file=$val['artwork_filename'];
            $download_link=site_url().'download_artwork/download_pdf/'.$file;
     ?>
      <a href="<?php echo $download_link; ?>">download - <?php echo $file;?></a><br />
     <?php
     }
     }
     else
     {
        echo '(none)';
     }
    ?>
    </td>
    </tr>
    </table>
    </td>
</tr>
<tr><td colspan="2" style="border-bottom:1px solid  #262B30;"></td></tr> 
<tr><td >
<a class="red13" href="<?php echo site_url('admin/upload_artwork/index/'.$page); ?>">Back</a> <span style="color:#d560ac;">|</span> 
   <a class="red13" href="<?php echo site_url('admin/upload_artwork/delete/'.$artworks_detail['artwork_id'].'/'.$page); ?>" onclick="return confirm('Are you sure you want to delete?');">Delete</a></td>
</tr>
</tr>
 </table>
<?php endif; ?>



<div class="pagination">
	<?php echo $pagination; ?>
</div>
<div class="line6"></div>
<?php /*  end of all  content  */ ?>
</div><!-- page noright -->

<?php  $this->load->view(TEMPLATE_NAME.'/admin/footer');?>